package com.jie.demo.base;

import org.junit.*;

/**
 * 注解测试
 * 结果：
 *   i'm setupClass
     i'm setup
     i'm test1
     i'm teardown
     i'm setup
     i'm test2
     i'm teardown
     i'm teardownClass
 */
public class BaseTest2
{
    @BeforeClass
    public static void setupClass(){
        System.out.println("i'm BaseTest2");
        System.out.println("i'm setupClass");
    }

    @Before
    public void setup(){
        System.out.println("i'm setup");
    }

    @Test
    public void test1(){
        System.out.println("i'm test1");
    }
    @Test
    public void test2(){
        System.out.println("i'm test2");
    }

    @After
    public void teardown(){
        System.out.println("i'm teardown");
    }


    @AfterClass
    public static void teardownClass(){
        System.out.println("i'm BaseTest2");
        System.out.println("i'm teardownClass");
    }
}
